package com.icloud.system.boot.controller.app;

import com.icloud.common.core.api.CommonResult;
import com.icloud.common.web.vo.PageVO;
import com.icloud.system.boot.dto.InformationPageDto;
import com.icloud.system.boot.service.ITInformationService;
import com.icloud.system.boot.vo.InformationVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "客户咨询服务")
@RequestMapping("/app/information")
@RequiredArgsConstructor
public class AppInformationController {
    private final ITInformationService itInformationService;

    @ApiOperation("分页")
    @GetMapping("/page")
    public CommonResult<PageVO<InformationVO>> page(InformationPageDto dto){
        return CommonResult.success(itInformationService.infomationPage(dto));
    }
}
